package c02;

public class E下ample01 {
    public static  void main(String[] args){
        int num = 4;
        //将num强制转化为byte型 在num前加（byte）
        byte b = (byte)num;
        System.out.println("b = " + b);
        byte s1 = 127;
        short s2 = 30000;
        int s3 =410411199;
        long s4 =1234;

        float f1 =0.1234f;
        double f2 =100.1;

        char c = 'a';
        char ch = 97;
        System.out.println(ch);
        //布尔类型
        boolean flag = false;
        flag = true;

        byte b1 = 3;
        int x = b1;
    }
}
